Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC: add subscriber delay #649

Closed
wants to merge 3 commits into from
Closed

POC: add subscriber delay #649

wants to merge 3 commits into from

Conversation

DavidBadura
Copy link
Member

@DavidBadura DavidBadura commented Dec 5, 2024

#[Subscriber('order.close')]
#[Delay('24h')]
class CloseOrder {
  //...
}

Copy link

github-actions bot commented Dec 5, 2024

Hello 👋

here is the most recent benchmark result:

SimpleSetupBench
================

+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
|                                        | time (kde mode)                                     | memory                                     |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| subject                                | Tag: <current>     | Tag: base          | time-diff | Tag: <current>  | Tag: base  | memory-diff |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| benchLoad1Event ()                     | 945.000μs (±0.00%) | 974.000μs (±0.00%) | -2.98%    | 34.128mb        | 34.640mb   | -1.48%      |
| benchLoad10000Events ()                | 51.773ms (±0.00%)  | 51.946ms (±0.00%)  | -0.33%    | 34.128mb        | 34.640mb   | -1.48%      |
| benchSave1Event ()                     | 1.053ms (±0.00%)   | 1.019ms (±0.00%)   | +3.27%    | 34.128mb        | 34.128mb   | 0.00%       |
| benchSave10000Events ()                | 226.966ms (±0.00%) | 228.120ms (±0.00%) | -0.51%    | 34.128mb        | 34.128mb   | 0.00%       |
| benchSave10000Aggregates ()            | 7.750s (±0.00%)    | 8.577s (±0.00%)    | -9.64%    | 34.128mb        | 34.128mb   | 0.00%       |
| benchSave10000AggregatesTransaction () | 4.908s (±0.00%)    | 4.915s (±0.00%)    | -0.14%    | 34.128mb        | 34.128mb   | 0.00%       |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+

SnapshotsBench
==============

+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
|                                        | time (kde mode)                                     | memory                                     |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| subject                                | Tag: <current>     | Tag: base          | time-diff | Tag: <current>  | Tag: base  | memory-diff |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| benchLoad10000EventsMissingSnapshot () | 52.686ms (±0.00%)  | 52.128ms (±0.00%)  | +1.07%    | 34.132mb        | 34.132mb   | 0.00%       |
| benchLoad10000Events ()                | 912.200μs (±0.00%) | 920.600μs (±0.00%) | -0.91%    | 34.132mb        | 34.132mb   | 0.00%       |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+

SubscriptionEngineBatchBench
============================

+---------------------------+-------------------+-------------------+-----------+-----------------+------------+-------------+
|                           | time (kde mode)                                   | memory                                     |
+---------------------------+-------------------+-------------------+-----------+-----------------+------------+-------------+
| subject                   | Tag: <current>    | Tag: base         | time-diff | Tag: <current>  | Tag: base  | memory-diff |
+---------------------------+-------------------+-------------------+-----------+-----------------+------------+-------------+
| benchHandle10000Events () | 78.031ms (±0.00%) | 78.612ms (±0.00%) | -0.74%    | 34.596mb        | 34.596mb   | 0.00%       |
+---------------------------+-------------------+-------------------+-----------+-----------------+------------+-------------+

SubscriptionEngineBench
=======================

+---------------------------+-----------------+-----------------+-----------+-----------------+------------+-------------+
|                           | time (kde mode)                               | memory                                     |
+---------------------------+-----------------+-----------------+-----------+-----------------+------------+-------------+
| subject                   | Tag: <current>  | Tag: base       | time-diff | Tag: <current>  | Tag: base  | memory-diff |
+---------------------------+-----------------+-----------------+-----------+-----------------+------------+-------------+
| benchHandle10000Events () | 3.199s (±0.00%) | 3.221s (±0.00%) | -0.68%    | 46.745mb        | 46.745mb   | 0.00%       |
+---------------------------+-----------------+-----------------+-----------+-----------------+------------+-------------+

PersonalDataBench
=================

+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
|                                        | time (kde mode)                                     | memory                                     |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| subject                                | Tag: <current>     | Tag: base          | time-diff | Tag: <current>  | Tag: base  | memory-diff |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| benchLoad1Event ()                     | 892.400μs (±0.00%) | 891.800μs (±0.00%) | +0.07%    | 35.258mb        | 35.258mb   | 0.00%       |
| benchLoad10000Events ()                | 91.105ms (±0.00%)  | 89.950ms (±0.00%)  | +1.28%    | 35.258mb        | 35.258mb   | 0.00%       |
| benchSave1Event ()                     | 1.509ms (±0.00%)   | 1.512ms (±0.00%)   | -0.17%    | 35.258mb        | 35.258mb   | 0.00%       |
| benchSave10000Events ()                | 252.302ms (±0.00%) | 251.079ms (±0.00%) | +0.49%    | 35.259mb        | 35.259mb   | 0.00%       |
| benchSave10000Aggregates ()            | 11.960s (±0.00%)   | 12.115s (±0.00%)   | -1.28%    | 35.258mb        | 35.258mb   | 0.00%       |
| benchSave10000AggregatesTransaction () | 9.045s (±0.00%)    | 9.058s (±0.00%)    | -0.15%    | 35.759mb        | 35.759mb   | 0.00%       |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+

SimpleSetupStreamStoreBench
===========================

+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
|                                        | time (kde mode)                                     | memory                                     |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| subject                                | Tag: <current>     | Tag: base          | time-diff | Tag: <current>  | Tag: base  | memory-diff |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| benchLoad1Event ()                     | 972.600μs (±0.00%) | 987.400μs (±0.00%) | -1.50%    | 34.241mb        | 34.241mb   | 0.00%       |
| benchLoad10000Events ()                | 56.075ms (±0.00%)  | 58.376ms (±0.00%)  | -3.94%    | 34.241mb        | 34.241mb   | 0.00%       |
| benchSave1Event ()                     | 1.111ms (±0.00%)   | 1.023ms (±0.00%)   | +8.61%    | 34.241mb        | 34.241mb   | 0.00%       |
| benchSave10000Events ()                | 297.344ms (±0.00%) | 292.872ms (±0.00%) | +1.53%    | 34.241mb        | 34.241mb   | 0.00%       |
| benchSave10000Aggregates ()            | 8.041s (±0.00%)    | 8.042s (±0.00%)    | -0.00%    | 34.241mb        | 34.241mb   | 0.00%       |
| benchSave10000AggregatesTransaction () | 5.086s (±0.00%)    | 5.125s (±0.00%)    | -0.76%    | 34.242mb        | 34.242mb   | 0.00%       |
+----------------------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+

SplitStreamBench
================

+-------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
|                         | time (kde mode)                                     | memory                                     |
+-------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| subject                 | Tag: <current>     | Tag: base          | time-diff | Tag: <current>  | Tag: base  | memory-diff |
+-------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+
| benchLoad10000Events () | 4.400ms (±0.00%)   | 4.384ms (±0.00%)   | +0.35%    | 37.435mb        | 37.435mb   | 0.00%       |
| benchSave10000Events () | 346.790ms (±0.00%) | 348.550ms (±0.00%) | -0.50%    | 37.510mb        | 37.511mb   | -0.00%      |
+-------------------------+--------------------+--------------------+-----------+-----------------+------------+-------------+

This comment gets update everytime a new commit comes in!

@DavidBadura DavidBadura changed the base branch from 3.6.x to 3.8.x January 2, 2025 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant